package com.pdstudio.carrecom.ui.activity.myclub;

import com.pdstudio.carrecom.R;
import com.pdstudio.carrecom.api.ServiceHelper;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;

/**
 * 违章查询
 * 类: ActivityBreakRule <br>
 * 描述: TODO <br>
 * 作者: xiangzhaoyu  <br>
 * 时间: 2015-6-24 下午8:47:13
 */
public class ActivityBreakRule extends Activity {

	private View customLiveIndexTitleView;
	private TextView txtTitle;
	private ImageView ivBack;
	
	private WebView mContent;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_myclub_breakrule);

		initTitle();
		InitialView();
	}
	
	private void initTitle() {
		txtTitle = (TextView) findViewById(R.id.title_text_nav);

		txtTitle.setText("违章查询");

		ivBack = (ImageView) findViewById(R.id.title_back);
		ivBack.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();				
			}
		});
	}
	
	private void InitialView(){
		mContent=(WebView)findViewById(R.id.wv_breakrule);
		WebSettings ws=mContent.getSettings();
		ws.setJavaScriptEnabled(true);
		mContent.loadUrl(ServiceHelper.BreakRule);
	}

	
}
